const path = require("path");
const ESLintPlugin = require("eslint-webpack-plugin");
const {
    CleanWebpackPlugin
} = require("clean-webpack-plugin");

module.exports = {
    entry: path.resolve(__dirname, "index.js"),
    output: {
        filename: "[name]_[contenthash:3].js",
        path: path.resolve(__dirname, "dist"),
    },
    plugins: [
        new CleanWebpackPlugin(),
        new ESLintPlugin(), // 目前使用的为eslint插件
    ],
    mode: "development"
}